<?php

namespace app\api\model\house;

use think\Model;


class HouseOrderActionLog extends Model
{





    // 表名
    protected $name = 'house_order_action_log';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];


    public static function add($order_id,$user_id,$identity,$status_name)
    {
        $data = [
            'order_id'=>$order_id,
            'user_id'=>$user_id,
            'identity'=>$identity,
            'status_name'=>$status_name,
        ];

        $model = new HouseOrderActionLog();

        return $model->save($data);
    }








}
